package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import java.util.Date;

import cn.csust.net2.manager.shared.vo.UserProperty;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;

public class PartyTraining extends PO implements Serializable,SchoolYearObj,BeanModelTag, UserProperty {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8871337290320150945L;
	
	private Integer partyTrainingID;
	private Date trainDate;
	private String schoolYear;
	private String whetherComplete;
	private String score;
	private String whetherPingyou;
	private String remark;
	
	private User user;
	
	public PartyTraining() {
		
	}
	
	public Integer getPartyTrainingID() {
		return partyTrainingID;
	}

	public void setPartyTrainingID(Integer partyTrainingID) {
		this.partyTrainingID = partyTrainingID;
	}

	public Date getTrainDate() {
		return trainDate;
	}

	public void setTrainDate(Date trainDate) {
		this.trainDate = trainDate;
	}

	public String getWhetherComplete() {
		return whetherComplete;
	}

	public void setWhetherComplete(String whetherComplete) {
		this.whetherComplete = whetherComplete;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getWhetherPingyou() {
		return whetherPingyou;
	}

	public void setWhetherPingyou(String whetherPingyou) {
		this.whetherPingyou = whetherPingyou;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return "党校培训";
	}

	@Override
	protected XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.partyTraining());
		return xmlInfo;
	}

	public String getSchoolYear() {
		return schoolYear;
	}

	public void setSchoolYear(String schoolYear) {
		this.schoolYear = schoolYear;
	}

	@Override
	public void setYear(String year) {
		// TODO Auto-generated method stub
		this.setSchoolYear(year);
	}

}
